﻿using System;
using System.Windows.Forms;

namespace WorkLogger.Client.Forms {
	public partial class EndWorkForm : Form {
		private TimeSpan workedTime;

		public EndWorkForm() {
			InitializeComponent();
		}

		public TimeSpan WorkedTime {
			get { return workedTime; }
			set {
				workedTime = value;
				messageLabel.Text = string.Format("Рабочий день закончен, вы проработали {0}.",
				                                  TimeSpanFormatHelper.FormatDuration(workedTime));
			}
		}
	}
}